#ifndef UPDATEARTICLECONTENTRESPONSE_H
#define UPDATEARTICLECONTENTRESPONSE_H

#include "network/networkjsonlistresponse.h"

#include <QObject>
#include <QMap>
#include <QList>

class Article;

class UpdateArticleContentResponse : public Network::JSONResponse
{
    Q_OBJECT
public:
    explicit UpdateArticleContentResponse(Article* article, QObject *parent = 0);

    Network::Response::Type type() const;

    inline Article* article() const {
        return m_article;
    }

    inline bool checkReplyDataSuccess() const {
        return m_checkReplyDataSuccess;
    }

signals:
    void readArticleContentReady();
private:
    void parse(const QVariant &data);

    bool parseArticleContent(const QVariantMap &map);
    bool parseArticleListImage(const QVariantMap &map);

    Article* m_article;

    bool m_checkReplyDataSuccess;

};

#endif // UPDATEARTICLECONTENTRESPONSE_H
